﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="travel-result-detail.aspx.cs" Async="true" Inherits="travel_travel_result_detail" MasterPageFile="~/travel/MobileTravel.master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<form id="form1" runat="server">
<section>
<header id="header">
<nav id="nav">
<a href="../default.aspx"><div class="branding"></div></a>
<div class="navpages">
<a href="travel-result.aspx">
<asp:Image ID="imgTop" runat="server" ImageUrl="../images/button/topnav-back.png" width="49" height="29" border="0" alt="back" BorderWidth="0"  /></a>
</div>
</nav>
</header>
</section>

<section id="body">
<div class="body">
 <div class="pad">                    
<center>
<div class="form white">
<div class="topResults"></div>
<div class="body">
<div class="pad">
<table cellpadding='0' cellspacing='0' border='0' width='240' style='font-family:Arial, Helvetica, sans-serif; font-size:12px; margin:0 auto;'>
        <tr>
          <td style="border-bottom:1px solid #ccc;">
            <table cellspacing="0" cellpadding="2" width="100%" border="0">
            <tr>
              <td valign="top" style="text-align:right;">Quote Ref Num :</td>
              <td valign="top" style="text-align:left;"><strong><u><asp:Label ID="lblRefNo" runat="server"></asp:Label></u></strong></td>
            </tr>          
            <tr>
              <td valign="top" style="text-align:right;">Trip Type :</td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblTripType"  runat="server" /></strong></td>
            </tr>
            <tr>
              <td valign="top" style="text-align:right;">Type of Policy :</td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblPolicy" runat="server"></asp:Label></strong></td>
            </tr>
             <tr>
              <td valign="top" style="text-align:right;">Coverage :</td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblCoverage" runat="server"></asp:Label></strong></td>
            </tr>
             <tr>
              <td valign="top" style="text-align:right;">Destination :</td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblDestination" runat="server"></asp:Label></strong></td>
            </tr>
            <tr>
              <td valign="top" style="text-align:right;">Travel Date : </td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblTravelDate" runat="server"></asp:Label></strong></td>
            </tr>
            <tr>
              <td valign="top" style="text-align:right;">No. of Traveller/s </td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblTravellers" runat="server"></asp:Label></strong></td>
            </tr>
            <tr>
              <td valign="top" style="text-align:right;">Quote Date</td>
              <td valign="top" style="text-align:left;"><strong><asp:Label ID="lblQuoteDate" runat="server"></asp:Label></strong></td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="bottom" align="center">
                <asp:ImageButton ID="ibtBuyNow" runat="server" ImageUrl="~/images/button/buynow_single.png" AlternateText="Buy Now!" Width="190px" Height="30" BorderWidth="0" />
                </td>
            </tr>
            <tr>
            <td colspan="2" valign="bottom" align="center">
<%--            <asp:Button ID="btnEmail" runat="server" Text="email quote"  OnClick="btnEmail_Click"  />     --%>           
            <asp:ImageButton ID="imgEmailQuote" runat="server" ImageUrl="~/images/button/emailquote_single.png"  alt="Email Quote" Width="190px" Height="30" BorderWidth="0" OnClick="imgEmailQuote_Click" />
            </td>
            </tr>
          </table>
          <br />
          </td>
        </tr>
        <tr>
            <td width="360"><br />


<!-- TABLE | Start  -->

<table width="100%" border="0" cellpadding="5" cellspacing="0"  class="table_details">
  <tr>
    <td width="45%"></td>
    <td width="55%" align="center" style="background:#e0e0e0; border-bottom:white 1px dashed;"><asp:HyperLink ID="hlnkProvider" runat="server" Target="_blank"><asp:Image ID="imgInsurer" runat="server" Width="100" /></asp:HyperLink></td>
  </tr>
  <tr>
    <td><strong>Insurer</strong></td>
    <td align="center" style="background:#d5d5d5; color:black;" ><strong><asp:Label ID="lblInsurer" runat="server"></asp:Label></strong></td>
  </tr>
  <tr>
  <td style="border-bottom:1px solid #ccc;" ></td>
  <td align="center" style="background:#d5d5d5;"><asp:Label ID="lblPackage" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td align="center" style="border-bottom:1px solid #ccc;" ><strong>Premium</strong></td>
    <td align="center" style="background:#d5d5d5; color:black; font-size:16px; font-weight:bolder;"><asp:Label ID="lblPrice" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Personal Accident (adult)</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgPAadult" runat="server" Visible="false" /><asp:Label ID="lblPAadult" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Personal Accident (senior)</strong></td>
    <td align="center" style="background:#c5c5c5;"><asp:Image ID="imgPAsenior" runat="server" Visible="false" /><asp:Label ID="lblPAsenior" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Double Indemnity (adult)</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgDIadult" runat="server" Visible="false" /><asp:HyperLink ID="hlnkDIadult" runat="server" Visible="false"></asp:HyperLink><asp:Label ID="lblDIadult" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Double Indemnity (senior)</strong></td>
    <td align="center" style="background:#c5c5c5;"><asp:Image ID="imgDIsenior" runat="server" Visible="false" /><asp:HyperLink ID="hlnkDIsenior" runat="server" Visible="false" /><asp:Label ID="lblDIsenior" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Medical Expense (adult)</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgMedExpadult" runat="server" Visible="false" /><asp:HyperLink ID="hlnkMedExpadult" runat="server" Visible="false" /><asp:Label ID="lblMedExpadult" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Medical Expense (senior)</strong></td>
    <td align="center" style="background:#c5c5c5;"><asp:Image ID="imgMedExpsenior" runat="server" Visible="false" /><asp:HyperLink ID="hlnkMedExpsenior" runat="server" Visible="false" /><asp:Label ID="lblMedExpsenior" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Emergency Medical Evacuation</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgEmMedEvac" runat="server" Visible="false" /><asp:HyperLink ID="hlnkEmMedEvac" runat="server" Visible="false" /><asp:Label ID="lblEmMedEvac" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Repatriation & Funeral Expenses</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgRepatriation" runat="server" Visible="false" /><asp:HyperLink ID="hlnkRepatriation" runat="server" Visible="false" /><asp:Label ID="lblRepatriation" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Hospital Income</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgHospitalInc" runat="server" Visible="false" /><asp:HyperLink ID="hlnkHospitalInc" runat="server" Visible="false" /><asp:Label ID="lblHospitalInc" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Pregnancy-related Illness</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgPregnancy" runat="server" Visible="false" /><asp:HyperLink ID="hlnkPregnancy" runat="server" Visible="false" /><asp:Label ID="lblPregnancy" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Overseas Compassionate Visit</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgOCV" runat="server" Visible="false" /><asp:HyperLink ID="hlnkOCV" runat="server" Visible="false" /><asp:Label ID="lblOCV" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Child Guard</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgChildGuard" runat="server" Visible="false" /><asp:HyperLink ID="hlnkChildGuard" runat="server" Visible="false" /><asp:Label ID="lblChildGuard" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Personal Liability</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgPL" runat="server" Visible="false" /><asp:HyperLink ID="hlnkPL" runat="server" Visible="false" /><asp:Label ID="lblPL" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Loss Baggage & Personal Effects</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgLossBag" runat="server" Visible="false" /><asp:HyperLink ID="hlnkLossBag" runat="server" Visible="false" /><asp:Label ID="lblLossBag" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Overseas Baggage Delay</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgBagDelay" runat="server" Visible="false" /><asp:HyperLink ID="hlnkBagDelay" runat="server" Visible="false" /><asp:Label ID="lblBagDelay" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Trip Cancellation</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTripCancel" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTripCancel" runat="server" Visible="false" /><asp:Label ID="lblTripCancel" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Trip Curtailment</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTripCurtail" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTripCurtail" runat="server" Visible="false" /><asp:Label ID="lblTripCurtail" runat="server"></asp:Label></td>
  </tr> 
   <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Overseas Travel Delay</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTravelDelay" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTravelDelay" runat="server" Visible="false" /><asp:Label ID="lblTravelDelay" runat="server"></asp:Label></td>
  </tr> 
   <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Missed Travel Connection</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTravelConn" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTravelConn" runat="server" Visible="false" /><asp:Label ID="lblTravelConn" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Travel Overbooked</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTravelOverbook" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTravelOverbook" runat="server" Visible="false" /><asp:Label ID="lblTravelOverbook" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Loss of Personal Money</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgMoney" runat="server" Visible="false" /><asp:HyperLink ID="hlnkMoney" runat="server" Visible="false" /><asp:Label ID="lblMoney" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Loss of Travel Documents</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTravelDoc" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTravelDoc" runat="server" Visible="false" /><asp:Label ID="lblTravelDoc" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Closure of Travel Agency</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgTravelAgency" runat="server" Visible="false" /><asp:HyperLink ID="hlnkTravelAgency" runat="server" Visible="false" /><asp:Label ID="lblTravelAgency" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Home Contents Protection</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgHomeProtect" runat="server" Visible="false" /><asp:HyperLink ID="hlnkHomeProtect" runat="server" Visible="false" /><asp:Label ID="lblHomeProtect" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Rental Vehicle Excess</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgCarRent" runat="server" Visible="false" /><asp:HyperLink ID="hlnkCarRent" runat="server" Visible="false" /><asp:Label ID="lblCarRent" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Hijack</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgHijack" runat="server" Visible="false" /><asp:HyperLink ID="hlnkHijack" runat="server" Visible="false" /><asp:Label ID="lblHijack" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Kidnap/Hostage</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgKidnap" runat="server" Visible="false" /><asp:HyperLink ID="hlnkKidnap" runat="server" Visible="false" /><asp:Label ID="lblKidnap" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>Emergency Telephone Charges</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:Image ID="imgPhoneCharge" runat="server" Visible="false" /><asp:HyperLink ID="hlnkPhoneCharge" runat="server" Visible="false" /><asp:Label ID="lblPhoneCharge" runat="server"></asp:Label></td>
  </tr> 
  <tr>
    <td style="border-bottom:1px solid #ccc;"><strong>View Policy Wordings</strong></td>
    <td align="center" style="background:#d5d5d5" ><asp:HyperLink ID="hlnkPolicyDoc" runat="server" /></td>
  </tr> 
</table>
<!-- TABLE | End  --><br />

<strong>Important Notes:</strong><br />
 • The amounts listed in the benefits table are the maximum coverage payable for each benefit.<br />
 • Coverage intended for overseas traveling and not in Singapore. Insured person must be Singaporean or Singapore Permanent Resident only.<br />
 • Information displayed here is a summary. Please read the actual policy wordings for details of coverage.
<br /><br />
          </td>
      </tr>
        <tr>
            <td id='email_footer'>
            </td>
        </tr>
    </table>
</div>
</div>
 </div>
    </center>
 </div>
    </div>
 <div style="display: none;">
<input id="inputProviderId" runat="server" type="hidden" />
<input id="inputCarResultId" runat="server" type="hidden" />
<input runat="server" id="inputCallMeMakeModel" type="hidden" />
<input runat="server" id="inputCallMeCompanyName" type="hidden" />
<asp:Label ID="lblTAResultID" runat="server"></asp:Label>
<input id="Hidden1" runat="server" type="hidden" />
<input id="inputTAId" runat="server" type="hidden" />
<input id="inputPlanType" type="hidden" runat="server" />
<input id="inputPlanName" type="hidden" runat="server" />
<input id="inputPremium" type="hidden" runat="server" />
<input id="inputResultId" type="hidden" runat="server" />
<input id="inputUserId" type="hidden" runat="server" />
<input id="inputNoOfAdult" type="hidden" runat="server" />
</div>                    
<div class="bottom"></div>

</section>
</form>
<script type="text/javascript">
    function ManageRedirect(_companyId, _resultid, _annualpremium, _userid, _taid, _planname, _fullname, _mobile, _email, _nric, _title, _ctname2) {

        alert("Next page is best viewed on your laptop/PC.");

        if (_companyId == "23" || _companyId == "34" || _companyId == "37" || _companyId == "38" || _companyId == "24") {
            //hsbc, chinataiping, 1cover, directasia 3rd party links

            window.open('redirect.aspx?resultId=' + _resultid + '&providerid=' + _companyId + '&premium=' + _annualpremium + '&userid=' + _userid
            + '&taid=' + _taid + '&nric=' + _nric + '&name2=' + _ctname2 + '&fullname=' + _fullname + '&mobile=' + _mobile
            + '&email=' + _email + '&title=' + _title);
        }
        else if (_companyId == "29") {
            //window.location.href = "https://www.comparexpress.com/travel-insurance/proposalforms/liberty_proposal_form.aspx?mtaid=" + _taid 
            //+"&mpid=" + _companyId + "&muid=" + _userid;
            window.location.href = "http://localhost/travel-insurance/proposalforms/liberty_proposal_form.aspx?mtaid=" + _taid
                            + "&mpid=" + _companyId + "&muid=" + _userid;
        }
        else if (_companyId == "30") {
            //window.location.href = "https://www.comparexpress.com/travel-insurance/proposalforms/etiqa_proposal_form.aspx?mtaid=" + _taid 
            //+"&mpid=" + _companyId + "&muid=" + _userid;
            window.location.href = "http://localhost/travel-insurance/proposalforms/etiqa_proposal_form.aspx?mtaid=" + _taid
                            + "&mpid=" + _companyId + "&muid=" + _userid;
        }
        else if (_companyId == "36") {
            //window.location.href = "https://www.comparexpress.com/travel-insurance/proposalforms/ace_proposal_form.aspx?mtaid=" + _taid 
            //+"&mpid=" + _companyId + "&muid=" + _userid;
            window.location.href = "http://localhost/travel-insurance/proposalforms/ace_proposal_form.aspx?mtaid=" + _taid
                            + "&mpid=" + _companyId + "&muid=" + _userid;
        }
        
    }

    
    
</script>
</asp:Content>